<div class="page-content" >
	<div class="panel panel-default">
		<div class="panel-heading">
			 <ul class="breadcrumb">
                    <li><a href="<{:U('index')}>">帖子分类</a></li>
                    <li ><a href="<{:U('Group/topic',array('group_id'=>$topic_data['pid'],'type'=>$pidData['type']))}>"><{$topic_data.pidData.group_name}></a></li>
                    <li >
                    <a href="<{:U('Group/comment',array('topic_id'=>$topic_data['topic_id'],'type'=>$pidData['type']))}>">
                    <{$topic_data.title}></a></li>
                     <li >添加评论</li>
                    
                   
                </ul>
		</div>
		<div class="panel-body">
			   <form enctype="multipart/form-data"  class="form-horizontal" action="<{:U('group/add_comment')}>" method="post" id="myform">
            	  <input type="hidden"  name="id" value="<{$data.id}>">
                
						<div class="form-group">
                            <label  class="col-sm-2 control-label">回复主题</label>
                            <div class="col-sm-7">
                            <textarea readonly="readonly" style="width: 480px; height: 60px;" class="input_a1" id="textarea-content" name="content" rows="2"><{$pname}></textarea>   <input type="hidden" name="pid" value="<{$pid}>" />
                            </div>
                        </div>
			
						<div class="form-group">
                            <label for="input-title" class="col-sm-2 control-label">用户ID</label>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" id="author" name="user_id" value="<{$user_id}>">
								   <input type="hidden" class="form-control" id="to_comment_id" name="to_comment_id" value="<{$data.id}>">
								     <input type="hidden" class="form-control" id="to_user_id" name="to_user_id" value="<{$data.user_id}>">
       
                            </div>
                        </div>
                         
 
						<div class="form-group">
                            <label for="input-title" class="col-sm-2 control-label">类型</label>
                            <div class="col-sm-7">
                                 <input type="text"  class="form-control" readonly="readonly" name="type" value="<{$type}>" />
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="textarea-content" class="col-sm-2 control-label">回复</label>
                            <div class="col-sm-7">
                                <textarea  style="width: 480px; height: 60px;" class="input_a1" id="textarea-content" name="content" rows="2"><{$data.content}></textarea>
                                 
                            </div>
                        </div>
                       
                         <div class="form-group">
					<div class="col-sm-offset-2 col-sm-7">
						<button type="submit" class="btn btn-primary">保存</button>
					</div>
				</div>
                        
                   
                </form> 
		</div>
	</div>
</div>

<script>
 
$(function(){
    $(".form-horizontal").bootstrapValidator({
        message: '您填入的值不合法',
        fields:{
           
			title: {
                message: '标题',
                validators: {
                    notEmpty: {
                        message: '标题不能为空'
                    },
                }
            },
 

        }
    });
	
 
});
 </script>
 
 
   